package com.github.llyb120.workflow.definition;

import javax.lang.model.element.Element;
import groovy.lang.Closure;
import java.util.*;
import java.io.Serializable;

import java.util.concurrent.*;
import org.apache.groovy.util.concurrent.concurrentlinkedhashmap.ConcurrentLinkedHashMap;


public class Node  implements Serializable{
    private static final long serialVersionUID = 1L;
    private int maximumHandlers = 1;;
    private List<Dealer> dealer = new CopyOnWriteArrayList();
    private String id;;
    private List<Object> to = new CopyOnWriteArrayList();
    private int minimumHandlers = 1;;
    private boolean waitForMerge = false;;
    private int maximumParallelNum = 1;;

/** getter and setter **/
    public  int  getMaximumHandlers (){
        return maximumHandlers;
    }
    public void setMaximumHandlers ( int  value){
        this.maximumHandlers = value;
    }
    public  List<  Dealer  >  getDealer (){
        return dealer;
    }
    public void setDealer ( List<  Dealer  >  value){
        this.dealer = value;
    }
    public  String  getId (){
        return id;
    }
    public void setId ( String  value){
        this.id = value;
    }
    public  List<  Object  >  getTo (){
        return to;
    }
    public void setTo ( List<  Object  >  value){
        this.to = value;
    }
    public  int  getMinimumHandlers (){
        return minimumHandlers;
    }
    public void setMinimumHandlers ( int  value){
        this.minimumHandlers = value;
    }
    public  boolean  getWaitForMerge (){
        return waitForMerge;
    }
    public void setWaitForMerge ( boolean  value){
        this.waitForMerge = value;
    }
    public  int  getMaximumParallelNum (){
        return maximumParallelNum;
    }
    public void setMaximumParallelNum ( int  value){
        this.maximumParallelNum = value;
    }
}